package com.sanpu.kxe.business.main.contract;

import android.net.Uri;

import com.sanpu.kxe.base.IBaseExtraView;
import com.sanpu.kxe.base.IBasePresenter;

import java.io.File;

/**
 * Description：个人中心contract
 * Created by 薛勇军 on 2018/7/10.
 */

public interface UserCenterContract {

    interface View extends IBaseExtraView<Presenter> {
        /**
         * 添加view
         * @param view 对象
         */
        void addContainerView(android.view.View view, int index);

        /**
         * 显示头像
         */
        void showHeadImageView(String file);
    }

    interface Presenter extends IBasePresenter {
        /**
         * 显示布局
         */
        void showView();

        /**
         * 昵称修改
         */
        void refreshNickName();

        /**
         * 裁剪
         * 相册裁剪
         */
        void startUCrop(Uri imageUri);
        /**
         * 拍照裁剪
         */
        void startUCrop(Uri imageUri, File file);

        /**
         * 压缩上传
         */
        void onCompress();
    }
}
